<?php
if(  count( $this->locations ) ):
    foreach( $this->locations AS $location ) : ?>
        <tr class="result" id="location_<?php echo $location['location_id'] ?>">
    	<th>
    	    <span><?php echo $location['location_name'] ?></span>
    	</th>
    	<td title="<?php echo $location['location_city'] ?>">
    	    <span><?php echo $location['location_city'] ?></span>
    	</td>
    	<td title="<?php echo $location['province_short_name'] ?>">
    	    <span><?php echo $location['province_short_name'] ?></span>
    	</td>
    	<td title="<?php echo $location['province_short_name'] ?>">
    	    <span class="actions">
    		<a class="contacts" href="/admin/ajax/detail/locationcontacts/id/<?php echo $location['location_id'] ?>">Vedi</a>
    	    </span>
    	</td>
    	<td class="actions" title="Operazioni">
    	    <span class="actions">
    		<a class="view" href="/admin/location/vedi/id/<?php echo $location['location_id'] ?>">Dett.</a>
    		<a class="edit" href="/admin/location/edit/id/<?php echo $location['location_id'] ?>">Edit</a>
    		<a class="del" href="">Canc</a>
    	    </span>
    	</td>
        </tr>
<?php endforeach; 
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>